package com.sgzn.sgpay.service.tcp.impl;

import com.sgzn.sgpay.model.response.SgsResultResponse;
import com.sgzn.sgpay.service.support.SgsResponseUtil;
import com.sgzn.sgpay.service.tcp.SgTcpServer;
import com.sgzn.sgpay.service.tcp.api.TcpIncreaseCreditService;
import com.sgzn.sgpay.service.tcp.model.terminal.request.TcpIncreaseCreditRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.net.Socket;

/**
 * 上分
 * @author huangsenguang
 * @version Id: TcpIncreaseCreditServiceImpl.java, v 0.1 2018/7/15 11:58 huangsenguang Exp $$
 */
@Service
@Slf4j
public class TcpIncreaseCreditServiceImpl extends TcpBaseTemplate implements TcpIncreaseCreditService {
    @Override
    public SgsResultResponse<String> invoke(TcpIncreaseCreditRequest request) {
        return super.execute(request.getDeviceId(), request.toString());
    }
}

